package com.core.Design.factoryMethod;

/**
 * Created by admin on 2017/6/6.
 */
public class Add extends Operator<Double> {
    @Override
    void calculate() {
        System.out.println("Add resulet: " + (super.getNumber() + super.getNumber1()));
    }
    //保留new
    Add(){

    }
    Add(Double number,Double number1){
        super(number,number1);
        calculate();
    }
}
